import axios from "@/axios"

export function getArticleDetail(articleId) {
    return axios.get(`/article_service/article/${articleId}`)
}

export function publishArticle(data) {
    return axios.post("/article_service/article/publish", data)
}

export function getArticlePageList(data) {
    return axios.post("/article_service/article/page", data)
}

export function deleteArticle(articleId) {
    return axios.delete(`/article_service/article/${articleId}` )
}

export function updateArticle(data) {
    return axios.put("/article_service/article", data)
}
